def match_example(value):
    match value:
        case 1:
            print("匹配到的值为1")
        case 2:
            print("匹配到的值为2")
        case _:
            print ("匹配到其他值")
match_example(1)
match_example(2)
match_example(3)